# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=d-spy
pkgver=1.8.0
pkgrel=0
pkgdesc="Like d-feet, but written in C and blisteringly fast"
url="https://gitlab.gnome.org/GNOME/d-spy"
license="GPL-3.0-or-later"
arch="all !s390x !riscv64" # limited by gtk4.0 and libadwaita
makedepends="meson desktop-file-utils glib-dev gtk4.0-dev libadwaita-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/d-spy/-/archive/$pkgver/d-spy-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
58f71a9b22be240402a6addf791e2f5111684c66ac70cf5496718760b251d40466ab8057688592d9dbe8cad9f6d8d21f9670eee66f442fb4d3ac901166b22b1d  d-spy-1.8.0.tar.gz
"
